package it.truestoryfactory.tsq.game.util;

import it.truestoryfactory.tsq.R;
import android.app.Fragment;
import android.os.Bundle;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

public class ButtonFragment extends Fragment {
	
	private View myContentView;

	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
		Log.d(this.getClass().getName(), "onCreateView");
		myContentView = inflater.inflate(R.layout.button, null);
		
        return myContentView;
	}
	
	public void setEnabled(boolean enabled) {
		Log.d(this.getClass().getName(), "button enabling " + enabled);
		myContentView.findViewById(R.id.button2).setEnabled(enabled);
	}

}